-
Couldn't load subscription status.
- Fork 21
Add command to enable Cylc uiserver in Jupyter launcher #624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Curious, we run Jupyter Lab and Cylc UI Server together at our site without doing this.
If you are using Jupyter Hub to launch your servers, are you using the I'm not sure what the |
|
This is for when launching with Without the With The enable command creates a json file in This doesn't pick up the same configuration as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, so you are adding Cylc UI Server to an existing Jupyter Hub configuration, but you are not changing the Spawner.cmd to cylc hubapp.
And for some reason, the Cylc UI Server extension is blocked by default from Jupyter Lab, whereas the Jupyter Lab extension is enabled by default from Cylc UI Server?!
I would suggest documenting the jpserver_extensions config and linking to the Jupyter Server config page for more info. We haven't use the jupyter server command for config in other docs. I'm not sure how much sense it makes for multi-user setups (user might not have write access to the env, site might be using another config file path, config file load order), but I'm happy to be wrong about this.
Here's my suggestion, feel free to re-work.
We should really shift this into cylc-doc at some point and re-organise the Cylc UI Server setup docs. Note, Since Jupyter Hub v4 if you are opening up multi-user access but you are not using the Cylc Hub configuration (either via the cylc hub command or by adding it into an existing Jupyter Hub setup) then this section is important:
|
|
||
| If you are deploying Jupyter Hub separately from Cylc UI Server, these | ||
| configurations may be relevant: | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * If the `spawner.cmd` is something other than `cylc hubapp` (e.g. `jupyter lab`), then you will need to use the Jupyter Server [jpserver_extensions](https://jupyter-server.readthedocs.io/en/latest/other/full-config.html) configuration to enable the Cylc UI Server i.e. `jpserver_extensions = {"cylc.uiserver": true}`. The Cylc UI will be available by replacing `/lab` in the URL with `/cylc`. |
| Enable the Cylc UI Server in `jupyterhub` or `jupyter lab` by running | ||
| ```bash | ||
| jupyter server extension enable --py cylc.uiserver | ||
| ``` | ||
| The Cylc UI will be available by replacing `/lab` in the URL with `/cylc`. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Enable the Cylc UI Server in `jupyterhub` or `jupyter lab` by running | |
| ```bash | |
| jupyter server extension enable --py cylc.uiserver | |
| ``` | |
| The Cylc UI will be available by replacing `/lab` in the URL with `/cylc`. |
I think this command will fail (or create a file in a user-specific location) in many situations because it requires the user to have write access to the deployment which they might not have. For transparency we aught to document the configuration and leave them to decide where best to configure it.
Note, this applies to Jupyter Lab not Jupyter Hub.
An
enablecommand appears to be necessary to have the UI server installed alongside Jupyter lab, add this to the instructions.Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.